// 这个是新闻的逻辑 后续不知道还有没有 所以单开一个文件来处理新闻逻辑

// 新闻列表
export const news_list = [
    {
        id: 1,
        title: 'Fed Signals Potential Rate Cut in Coming Meetings',
        source: 'Financial Times',
        timestamp: '2 hours ago',
        category: 'Economy',
        imageUrl: 'https://space.coze.cn/api/coze_space/gen_image?image_size=square_hd&prompt=federal%20reserve%20building%20with%20economic%20data%20charts&sign=937b02a91a913b8978d4e97506926c44',
        content: 'Federal Reserve officials have indicated that they might consider cutting interest rates in upcoming meetings as inflation shows signs of cooling and economic growth moderates. The central bank has maintained a cautious approach, but recent data suggesting a slowdown in the job market has led to increased speculation about a potential rate cut in the next quarter. Market analysts are now pricing in a 60% chance of a rate reduction by the end of the year.'
    },
    {
        id: 2,
        title: 'Tech Stocks Rally as AI Innovation Continues to Drive Growth',
        source: 'CNBC',
        timestamp: '4 hours ago',
        category: 'Technology',
        imageUrl: 'https://space.coze.cn/api/coze_space/gen_image?image_size=square_hd&prompt=technology%20stocks%20chart%20with%20upward%20trend&sign=a15b51775f104f187e0e5f2fbe81ce18',
        content: 'Technology stocks surged today as investors continued to bet on the transformative potential of artificial intelligence. Major tech companies reported significant advances in their AI platforms, with several announcing new partnerships and product launches. Analysts note that AI-related investments have been the primary driver of tech sector outperformance this year, with no signs of slowing down as companies race to integrate AI into their core products and services.'
    },
    {
        id: 3,
        title: 'Energy Sector Faces Volatility Amid Geopolitical Tensions',
        source: 'Bloomberg',
        timestamp: '6 hours ago',
        category: 'Energy',
        imageUrl: 'https://space.coze.cn/api/coze_space/gen_image?image_size=square_hd&prompt=oil%20prices%20volatility%20chart%20with%20geopolitical%20tensions&sign=ce2e8cf17c6c7ab4def9db3e360d67a4',
        content: 'The energy sector experienced significant volatility today as geopolitical tensions in key oil-producing regions flared up. Crude oil prices fluctuated by more than 3% throughout the trading day amid reports of supply disruptions and concerns about global demand. Energy companies with exposure to the affected regions saw their stock prices react strongly to the news, while renewable energy stocks continued their steady climb as investors seek alternatives to fossil fuels.'
    },
    {
        id: 4,
        title: 'Healthcare Companies Lead in Q3 Earnings Reports',
        source: 'MarketWatch',
        timestamp: '1 day ago',
        category: 'Healthcare',
        imageUrl: 'https://space.coze.cn/api/coze_space/gen_image?image_size=square_hd&prompt=healthcare%20sector%20earnings%20growth%20chart&sign=eea3bd6847eb320a4dea8509de0d0d61',
        content: 'Healthcare companies delivered strong third-quarter earnings results, outperforming analyst expectations across the board. Pharmaceutical giants reported robust sales of both established and new drugs, while medical device manufacturers benefited from increased elective procedures. Biotech firms also showed signs of recovery after a challenging period, with several breakthrough treatments advancing through clinical trials. The sector\'s strong performance has led to upward revisions in full-year forecasts.'
    },
    {
        id: 5,
        title: 'Major Retailers Report Mixed Results as Consumer Spending Patterns Shift',
        source: 'Wall Street Journal',
        timestamp: '1 day ago',
        category: 'Markets',
        imageUrl: 'https://space.coze.cn/api/coze_space/gen_image?image_size=square_hd&prompt=retail%20shopping%20mall%20with%20consumers&sign=9f6ddcbea6d10d2fb4f14a22f7598728',
        content: 'Major retailers reported mixed third-quarter results today, reflecting changing consumer spending patterns amid persistent inflation concerns. While discount retailers and e-commerce giants continued to perform well, traditional brick-and-mortar stores faced headwinds as shoppers became more selective with their purchases. Several retailers highlighted strength in essential categories while noting weakness in discretionary spending, indicating that consumers remain cautious about the economic outlook.'
    },
    {
        id: 6,
        title: 'Cryptocurrency Markets Stabilize After Recent Volatility',
        source: 'CoinDesk',
        timestamp: '2 days ago',
        category: 'Markets',
        imageUrl: 'https://space.coze.cn/api/coze_space/gen_image?image_size=square_hd&prompt=cryptocurrency%20trading%20charts%20and%20blockchain%20technology&sign=d98d2d42d1326606b9864537660f7bbb',
        content: 'Cryptocurrency markets showed signs of stabilization today after a period of heightened volatility. Bitcoin, the largest cryptocurrency by market capitalization, traded within a narrow range, while altcoins displayed varying degrees of strength. Market analysts attribute the relative calm to improved regulatory clarity in several major markets and growing institutional interest. However, concerns about potential regulatory changes in other regions continue to linger, keeping some investors on the sidelines.'
    },
    {
        id: 7,
        title: 'Automakers Accelerate Electric Vehicle Production Plans',
        source: 'Automotive News',
        timestamp: '2 days ago',
        category: 'Technology',
        imageUrl: 'https://space.coze.cn/api/coze_space/gen_image?image_size=square_hd&prompt=electric%20vehicle%20manufacturing%20plant&sign=a0bc9db875e413edd313133dd36ba401',
        content: 'Major automakers announced accelerated plans to increase electric vehicle production today, as demand for EVs continues to grow faster than expected. Several companies revealed expansions to existing manufacturing facilities and new investments in battery technology. The announcements come as governments around the world implement stricter emissions regulations and offer incentives for consumers to switch to electric vehicles. Industry analysts predict that EVs will account for more than 30% of global auto sales by 2030.'
    },
    {
        id: 8,
        title: 'Housing Market Shows Signs of Recovery After Recent Slowdown',
        source: 'Realtor.com',
        timestamp: '3 days ago',
        category: 'Economy',
        imageUrl: 'https://space.coze.cn/api/coze_space/gen_image?image_size=square_hd&prompt=housing%20market%20recovery%20graph%20and%20real%20estate%20data&sign=b46efa24150fec444befd8b66b4ebb45',
        content: 'The housing market is showing tentative signs of recovery after a prolonged slowdown caused by rising mortgage rates. Recent data indicates an increase in both home sales and new construction activity, suggesting that the market may be stabilizing. While prices remain elevated compared to historical averages, the rate of appreciation has slowed significantly, making homeownership more accessible for some buyers. Experts caution, however, that the recovery remains fragile and could be derailed by further interest rate hikes.'
    },
    {
        id: 9,
        title: 'Major Bank Announces Strategic Restructuring Plan',
        source: 'Financial Times',
        timestamp: '3 days ago',
        category: 'Markets',
        imageUrl: 'https://space.coze.cn/api/coze_space/gen_image?image_size=square_hd&prompt=banking%20financial%20institution%20headquarters&sign=36a0a3fed84140965c3e590cfa15af1f',
        content: 'One of the nation\'s largest banks announced a comprehensive strategic restructuring plan today aimed at improving efficiency and positioning the company for long-term growth. The plan includes significant cost-cutting measures, reorganization of business units, and increased investment in digital banking capabilities. While the restructuring is expected to result in job losses in some areas, the bank emphasized its commitment to maintaining a strong physical presence in key markets. Shareholders reacted positively to the news, sending the stock higher in after-hours trading.'
    },
    {
        id: 10,
        title: 'Pharmaceutical Company Secures Breakthrough Drug Approval',
        source: 'Medical News Today',
        timestamp: '4 days ago',
        category: 'Healthcare',
        imageUrl: 'https://space.coze.cn/api/coze_space/gen_image?image_size=square_hd&prompt=pharmaceutical%20research%20laboratory%20with%20scientists&sign=da87264d3db62363f968c4014980b047',
        content: 'A leading pharmaceutical company announced today that it has received regulatory approval for a breakthrough treatment for a rare but serious medical condition. The approval comes after successful clinical trials showed significant improvements in patient outcomes compared to existing therapies. Analysts predict that the drug could generate substantial revenue for the company while providing much-needed treatment options for patients with limited alternatives. The company plans to launch the medication in major markets within the next quarter.'
    },
    {
        id: 11,
        title: 'Renewable Energy Investment Reaches Record High in Third Quarter',
        source: 'GreenBiz',
        timestamp: '4 days ago',
        category: 'Energy',
        imageUrl: 'https://space.coze.cn/api/coze_space/gen_image?image_size=square_hd&prompt=renewable%20energy%20solar%20and%20wind%20farm%20in%20sunlight&sign=22d1116837a593cecb1b0afb92667266',
        content: 'Global investment in renewable energy reached a new record high in the third quarter, driven by strong demand for clean energy solutions and supportive government policies. Solar and wind projects accounted for the majority of new investments, with battery storage also seeing significant growth. Analysts attribute the surge in funding to increasing corporate commitments to sustainability and rising energy costs. The momentum is expected to continue as countries work to meet their climate targets and reduce dependence on fossil fuels.'
    },
    {
        id: 12,
        title: 'Consumer Confidence Index Shows Modest Improvement',
        source: 'Conference Board',
        timestamp: '5 days ago',
        category: 'Economy',
        imageUrl: 'https://space.coze.cn/api/coze_space/gen_image?image_size=square_hd&prompt=consumer%20confidence%20economic%20indicator%20chart&sign=2ca166eaebf0525db41da0a0f0a7de47',
        content: 'The Consumer Confidence Index showed a modest improvement this month, suggesting that consumers are becoming slightly more optimistic about the economy. The increase was driven by improving expectations for future business conditions and job prospects, although concerns about inflation and interest rates persist. Economists caution that while the uptick is encouraging, consumer confidence remains below pre-pandemic levels and could be vulnerable to changes in economic conditions.'
    },
    {
        id: 13,
        title: 'Social Media Platform Announces Major Algorithm Update',
        source: 'TechCrunch',
        timestamp: '5 days ago',
        category: 'Technology',
        imageUrl: 'https://space.coze.cn/api/coze_space/gen_image?image_size=square_hd&prompt=social%20media%20platform%20dashboard%20analytics&sign=74b1e9446081d2b964e1f7b2bf2a02e5',
        content: 'One of the world\'s largest social media platforms announced a major algorithm update today aimed at improving the quality of content users see in their feeds. The changes are designed to prioritize content from friends and family over posts from brands and media outlets, a shift from previous iterations that emphasized engagement metrics. The company hopes the update will make the platform more meaningful for users while addressing concerns about misinformation and harmful content. Content creators and businesses that rely on the platform for reach expressed mixed reactions to the news.'
    },
    {
        id: 14,
        title: 'Agricultural Commodities Rally on Supply Concerns',
        source: 'Bloomberg',
        timestamp: '6 days ago',
        category: 'Markets',
        imageUrl: 'https://space.coze.cn/api/coze_space/gen_image?image_size=square_hd&prompt=agricultural%20commodities%20trading%20chart%20grain%20silos&sign=7c977a1ef6c2af29b72e185fa7c7645c',
        content: 'Agricultural commodities experienced a significant rally today amid growing concerns about global supply. Drought conditions in key growing regions and logistical challenges have raised fears of potential shortages in several major crops. Wheat, corn, and soybean futures all posted strong gains, with some contracts reaching multi-month highs. The rally has implications for food prices, which have already been under pressure from inflation and supply chain disruptions. Analysts will be closely monitoring weather patterns and crop reports in the coming weeks for further clues about supply dynamics.'
    },
    {
        id: 15,
        title: 'Major Airline Unveils Ambitious Sustainability Plan',
        source: 'Aviation Week',
        timestamp: '6 days ago',
        category: 'Energy',
        imageUrl: 'https://space.coze.cn/api/coze_space/gen_image?image_size=square_hd&prompt=airline%20sustainability%20eco%20friendly%20airplane%20concept&sign=4c344fd33b99a34dbdc02e1d875300ec',
        content: 'A leading global airline unveiled an ambitious sustainability plan today, outlining its commitment to reducing carbon emissions and transitioning to more environmentally friendly operations. The plan includes significant investments in sustainable aviation fuels, fleet modernization, and carbon offset programs. The airline aims to achieve net-zero carbon emissions by 2050, aligning with industry-wide goals. While environmental advocates praised the initiative, some critics questioned the feasibility of the timeline and the reliance on certain technologies that are still in development.'
    },
    {
        id: 16,
        title: 'Biotech Startup Secures Record-Breaking Funding Round',
        source: 'VentureBeat',
        timestamp: '1 week ago',
        category: 'Healthcare',
        imageUrl: 'https://space.coze.cn/api/coze_space/gen_image?image_size=square_hd&prompt=biotechnology%20startup%20research%20team%20in%20lab&sign=04a3ac7a4a37342ca3771b3e2f0253c5',
        content: 'A promising biotech startup focused on developing novel gene therapies announced today that it has secured a record-breaking funding round led by major venture capital firms. The funding will be used to advance the company\'s pipeline of experimental treatments for rare genetic disorders and expand its research and development capabilities. The significant investment reflects growing confidence in the potential of gene therapy to address previously untreatable conditions. The startup\'s lead candidate is expected to enter Phase II clinical trials next year.'
    },
    {
        id: 17,
        title: 'Retailers Prepare for Busy Holiday Shopping Season',
        source: 'National Retail Federation',
        timestamp: '1 week ago',
        category: 'Economy',
        imageUrl: 'https://space.coze.cn/api/coze_space/gen_image?image_size=square_hd&prompt=holiday%20shopping%20season%20retail%20store%20decorations&sign=169208a0b6bcf8c00bfaac4f800ec9dc',
        content: 'Retailers across the country are making final preparations for what is expected to be a busy holiday shopping season. Many have expanded inventory levels, extended store hours, and enhanced their online shopping experiences in anticipation of strong consumer demand. While inflation remains a concern, early indicators suggest that consumers are willing to spend on holiday gifts and experiences. Retail analysts project holiday sales could increase by 3-5% compared to last year, although the pace of growth may be slower than in recent years.'
    },
    {
        id: 18,
        title: 'Semiconductor Shortage Continues to Impact Multiple Industries',
        source: 'Electronics Weekly',
        timestamp: '1 week ago',
        category: 'Technology',
        imageUrl: 'https://space.coze.cn/api/coze_space/gen_image?image_size=square_hd&prompt=semiconductor%20chip%20manufacturing%20process%20technology&sign=09e0c14e234653df5d3a92f229c38956',
        content: 'The global semiconductor shortage continues to impact multiple industries, with automotive, consumer electronics, and industrial equipment manufacturers among those facing ongoing supply constraints. While production has increased at several major chip facilities, demand has outpaced supply, leading to extended lead times and rising component costs. The situation has prompted increased investment in new manufacturing capacity, but industry experts warn that it could take several years for the market to fully stabilize. Some companies have begun redesigning products to use more readily available components as a temporary solution.'
    },
    {
        id: 19,
        title: 'Private Equity Firms Eye Increased Investment in Infrastructure',
        source: 'Private Equity International',
        timestamp: '1 week ago',
        category: 'Markets',
        imageUrl: 'https://space.coze.cn/api/coze_space/gen_image?image_size=square_hd&prompt=infrastructure%20investment%20construction%20site%20with%20cranes&sign=809464b42bb9fb82e746f0f5a11b23e2',
        content: 'Private equity firms are increasingly focusing on infrastructure investments as they seek stable, long-term returns in a volatile market environment. Aging infrastructure, coupled with government initiatives to modernize transportation, energy, and digital systems, has created significant investment opportunities. Several major private equity firms have raised dedicated infrastructure funds in recent months, with total capital commitments reaching record levels. Industry experts expect infrastructure investing to remain a focus area for private capital in the coming years.'
    },
    {
        id: 20,
        title: 'New Study Highlights Growing Impact of Remote Work on Commercial Real Estate',
        source: 'Real Estate Weekly',
        timestamp: '1 week ago',
        category: 'Economy',
        imageUrl: 'https://space.coze.cn/api/coze_space/gen_image?image_size=square_hd&prompt=remote%20work%20trend%20impact%20on%20commercial%20office%20buildings&sign=1446fb50f77ef81115ec2edb6f9dd5df',
        content: 'A new study released today highlights the growing impact of remote and hybrid work arrangements on the commercial real estate sector. The research found that office occupancy rates remain significantly below pre-pandemic levels in many major cities, leading to increased vacancy rates and downward pressure on rental prices. Some property owners are responding by repositioning office buildings for alternative uses, such as residential or mixed-use developments. The study suggests that the commercial real estate market is undergoing a fundamental shift that could reshape urban landscapes for years to come.'
    }
];

// 新闻分类
const categories = ['All', 'Economy', 'Technology', 'Energy', 'Healthcare', 'Markets'];

// 分类标签颜色映射
export const categoryColors = {
    Economy: 'color: rgb(30, 64, 175); background-color: rgb(219, 234, 254);',
    Technology: 'color: rgb(107, 33, 168); background-color: rgb(243, 232, 255);',
    Energy: 'color: rgb(133, 77, 14); background-color: rgb(254, 249, 195);',
    Healthcare: 'color: rgb(22, 101, 52); background-color: rgb(220, 252, 231);',
    Markets: 'color: rgb(153, 27, 27); background-color: rgb(254, 226, 226);'
};